package yb.ecp.fast.user.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yb.ecp.fast.user.dao.entity.AccountDO;

import java.util.Date;
import java.util.List;

@Mapper
public interface AccountMapper {
    int deleteByPrimaryKey(String loginName);
    int deleteByUserId(String userId);

    int insert(AccountDO record);

    int insertSelective(AccountDO record);

    AccountDO selectByPrimaryKey(String loginName);

    AccountDO selectByUserId(String userId);

   List<AccountDO> selectListByUserId(String userId);

    int updateByPrimaryKeySelective(AccountDO record);

    int updateByPrimaryKey(AccountDO record);

    int checkByPrimaryKey(String loginName);

    int checkByUserId(String userId);

    int checkLoginName(AccountDO record);

    Date getLastLoginTime(String userId);

    int updateLoginTime(String userId);

    String selectUserIdByAccount(String loginName);

    List<AccountDO> queryAdminUserByOrgId(@Param("orgId") String orgId);
}